import request from '@/utils/request'



export function queryAllSysOrderPage(page) {
  return request({
    url: '/zf2/sys/order/queryAllPage',
    method: 'get',
    params: page
  })
}

export function ZfSysOrderDelete(id) {
  return request({
    url: '/zf2/sys/order/delete/' + id,
    method: 'get'
  })
}

export function ZfSysOrderDeleteAll(ids) {
  return request({
    url: '/zf2/sys/order/delete/all',
    method: 'get',
    params: {
      ids: ids.join(',')
    }
  })
}

export function ZfSysOrderUpdate(data) {
  return request({
    url: '/zf2/sys/order/update',
    method: 'post',
    data
  })
}

export function ZfSysOrderAdd(data) {
  return request({
    url: '/zf2/sys/order/add',
    method: 'post',
    data
  })
}

// SysOrderImgUpload
export function SysOrderImgUpload(data) {
  return request({
    url: '/zf2/sys/order/img/upload',
    method: 'post',
    data
  })
}

export function SysOrderImgUpload2(data) {
  return request({
    url: '/zf2/sys/order/img/upload2',
    method: 'post',
    data
  })
}
